#pragma once
#ifndef COLOR4F_H
#define COLOR4F_H


class Color4f
{
public:
    float r,g,b,a;

    static const Color4f white, black, red, blue, green;

    Color4f();
    Color4f(const Color4f& other);
    Color4f(float r, float g, float b);
    Color4f(float r, float g, float b, float a);
    Color4f(const float* other);
    ~Color4f();

    //cast to pointer to float (eg for glTranslate3fv)
    operator float* () const {return (float*) this;}
    operator const float* () const {return (const float*) this;}
};

#endif // COLOR4F_H
